﻿using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Drawing;

using System.Text;
using System.Web.Mvc;
using System.Net;
using System.IO;
using System.Data.Objects;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Security.Cryptography;
using System.Web.SessionState;
using System.Management;
using BugTracker.Models;
using BugTracker.Helper;
using System.ComponentModel.DataAnnotations;

namespace BugTracker.Models
{
    public class ErrorLog
    {
        //ErrorLog(string error_log, string error_messagem,string ipaddress, string datetoday, int useridFK)

        [Key]
        public int erroridPK { get; set; }
        //auto increment
        [Column]
        public string error_log { get; set; } // CONTROLLER_NAME|CONTROLLER_METHOD_NAME
        //e.g.  PostController|CreateMoviePost

        [Column]
        public string error_message { get; set; }
        //e.g during creation of movie post error has been generated because of category table count is less than zero
        [Column]
        public string ipaddress { get; set; }
        //e.g ipaddress 192.168.100.1
        [Column]
        public string browser { get; set; }
        //e.g browser type IE7
        [Column]
        public string datetoday { get; set; }
        //date today 08/05/2011
        [Column]
        public int log_attempt { get; set; }

        [Column]
        public string sessionid_token { get; set; }
        //1
    }
}